fetch('movies.json')
 .then(response => response.json())
 .then(data => console.log(data));

 fetch('test.txt')
 .then(response => response.text())
 .then(data => console.log(data));
 
 fetch(' ')
 .then(response => response.json())
 .then(data => console.log(data));